<template>
  <div>
    <el-button type="primary" class="submit-btn-add" @click="addData">
      <!-- <img class="icon-img" :src="iconAdd" alt="" /> -->
      新增岗亭</el-button
    >
  </div>
</template>

<script setup>
import { ref } from "vue";
import iconAdd from "@/assets/image/btn/icon-add.png";

const emits = defineEmits(["buttons"]);

const operation = ref("");

// 新增按钮
const addData = () => {
  operation.value = "entry-add";
  emits("buttons", operation.value);
};
</script>

<style lang="less" scoped>
.submit-btn-add {
  background: #007aff;
  border: 1px solid #007aff;
  border-radius: 2px;
  padding: 5px 16px;
}
</style>
